<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    p{
      font-size: 12px;
      color: red;
      margin: 0;
    }

    img{
      width: 40px;
      height: 30px;
      position: absolute;
      left: 260px;
      top:10px
    }
    input{
      width: 260px;
      border: 0;
      padding: 10px 20px;
    }
  </style>
</head>
<body>
<input type="text">
<img src="red.jpg"
     alt="">
<p>就这样吧</p>
</body>
</html>